package demo4;

public class Text {
    public int n1 = 1;
    public int n2 = 2;
    public int n3 = 3;

    class InnerClass1{
        public int n4 = 4;
        public int n5 = 5;
        public int n6 = 6;
    }

    public static void main(String[] args) {


        Text text = new Text();
        Text.InnerClass1 innerClass = text.new InnerClass1();

        System.out.println(text.n1);
        System.out.println(text.n2);
        System.out.println(text.n3);

        System.out.println(innerClass.n4);
        System.out.println(innerClass.n5);
        System.out.println(innerClass.n6);

    }


    static class InnerClass{
        public int n4 = 4;
        public int n5 = 5;
        public int n6 = 6;

    }

    public static void main1(String[] args) {
        Text text = new Text();
        Text.InnerClass innerClass = new Text.InnerClass();

        System.out.println(text.n1);
        System.out.println(text.n2);
        System.out.println(text.n3);

        System.out.println(innerClass.n4);
        System.out.println(innerClass.n5);
        System.out.println(innerClass.n6);

    }

}
